/**
 * 
 */
package com.start.cloud.robotcore;

import java.util.regex.Pattern;

/**
 * @author erxiao 2017年1月21日
 */
public class Constants {

	public static final String CONFIG_APPNAME_KEY = "bee.config.appname";
	
	public static final String CONFIG_EVN_KEY = "bee.config.evn";
	
	public static final String CONFIG_HOSTINDEX_KEY = "bee.config.hostindex";
	
	public static final String CONFIG_SCANPACKAGE_KEY = "bee.config.scanPackage";

	public static final String CONFIG_BASEPACKAGE_KEY = "bee.config.basePackage";
	
	public static final String CONFIG_SERVER_URL_KEY = "bee.config.server.url";
	
	public static final String CONFIG_SERVER_USERNAME_KEY = "bee.config.server.username";
	
	public static final String CONFIG_SERVER_PASSWORD_KEY = "bee.config.server.password";
	
	public static final String CONFIG_CLIENT_PORT = "bee.config.client.port";
	
	public static final String LOG_LEVEL = "bee.log.level";
	
	public static final String LOG_LEVEL_REGX = "dog\\.log\\.level";
	
	public static final String LOG_BASEDIR = "bee.log.basedir";
	
	public static final String LOG_MAXHISTORY = "bee.log.maxHistory";
	
	public static final String LOG_MAXHISTORY_ERROR = "bee.log.error.maxHistory";
	
	public static final String LOG_PREFIX = "bee.log";
	
	public static final String TUBE_PORT_KEY = "bee.tube.port";
	
	public static final String TUBE_MODE = "bee.tube.mode";
	
	public static final String TUBE_TIMEOUT = "bee.tube.timeout";
	
	public static final String TUBE_DUBBO_MONITOR = "bee.tube.dubbo.monitor";
	
	public static final String TUBE_DUBBO_CONSUMER_CHECK = "bee.tube.dubbo.consumer.check";
	
	public static final String TUBE_DUBBO_CONSUMER_CONNECTIONS = "bee.tube.dubbo.consumer.connections";
	
	public static final String TUBE_DUBBO_PROVIDER_CONNECTIONS = "bee.tube.dubbo.provider.connections";
	
	public static final String TUBE_DUBBO_PROVIDER_THREADS = "bee.tube.dubbo.provider.threads";
	
	public static final String TUBE_DUBBO_PROVIDER_QUEUES = "bee.tube.dubbo.provider.queues";
	
	public static final String TUBE_DUBBO_TIMEOUT = "bee.tube.dubbo.timeout";
	
	public static final String TUBE_DUBBO_RETRIES = "bee.tube.dubbo.retries";
	
	public static final String TUBE_DUBBO_DELAY = "bee.tube.dubbo.delay";
	
	public static final String TUBE_DUBBO_DISPATCHER = "bee.tube.dubbo.dispatcher";
	
	public static final String TUBE_DUBBO_IOTHREADS = "bee.tube.dubbo.iothreads";
	
	public static final String TUBE_DUBBO_CLUSTER = "bee.tube.dubbo.cluster";
	
	public static final String TUBE_DUBBO_REGISTRY_RETRIES = "bee.tube.dubbo.registry.timeout";
	
	public static final String TUBE_DUBBO_REGISTRY_REGISTER = "bee.tube.dubbo.registry.register";
	
	public static final String TUBE_DUBBO_REGISTRY_ADDRESS = "bee.tube.dubbo.registry.address";
	
	public static final String TUBE_REQUESTID = "TUBE_REQUESTID";
	
	public static final String V_TUBE_MODE_REST = "rest";
	
	public static final String V_TUBE_MODE_DUBBO = "dubbo";
	
	public static final String V_TUBE_PROXY_SUFFIX = "_tp";

	public static final Pattern COMMA_SPLIT_PATTERN = Pattern.compile("\\s*[,]+\\s*");
}
